package repository

import "hitme/go-api/models"

type feedBackRep struct {
    BaseRepo
}

var FeedBackRep = &feedBackRep{BaseRepo: BaseRepo{
    IModel: models.FeedBackModel,
}}

// Create 创建意见反馈
func (r *feedBackRep) Create(data models.FeedBack) error {
    return r.Model().Create(&data).Error
}